<%@page import="org.apache.catalina.connector.Request"%>
<%@ page language="java" pageEncoding="UTF-8" %>
<%@ page import="my.market.jdbc.dataClass.Users" %>
<% Users user = (Users) request.getSession().getAttribute("user"); %>

<html>
<head>
<title>用户:<%=user.getName() %></title>
<link type="text/css" href="${pageContext.request.contextPath }/pageDisplay/css/main.css" rel="stylesheet" />
</head>
<body class="main">
<%@include file="../pageDisplay/head.jsp" %>
<div class="content">
<table>
	<tr>
		<td><%@include file="../pageDisplay/category.jsp" %></td>
		<td><%@include file="../pageDisplay/search.jsp" %></td>
	</tr>
</table>
</div>
<div class="content">
<table>
	<tr>
		<td><img src="images/headPortrait/default.jpeg" width="150" height="150" border="1"></td>
		<td>
			<table>
			<tr><td>姓&nbsp;&nbsp;名:<%=user.getName() %></td></tr>
			<tr><td>性&nbsp;&nbsp;别:<%=user.getSex() %></td></tr>
			<tr><td>用户状态:<%=user.getStatus() %></td></tr>
			<tr><td>余&nbsp;&nbsp;额:<%=user.getMoney() %></td></tr>
			<tr><td>邮&nbsp;&nbsp;箱:<%=user.getMail() %></td></tr>
			<tr><td>电&nbsp;&nbsp;话:<%=user.getPhone() %></td></tr>
			<tr><td>注册时间:<%=user.getReg_time() %></td></tr>
			<tr><td><a href="${pageContext.request.contextPath }/pageDisplay/order.jsp" ><button type="button">订单管理</button></a></td></tr>
			</table>
		</td>
	</tr>
	<tr>
		<%if (user.getDescription() == null){ %>
			<td><p>用户简介:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用户很懒，什么都没有留下。</p></td>
		<%} else{ %>
			<td><p>用户简介:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=user.getDescription() %></p></td>
		<%} %>
	</tr>
</table>
</div>
<%@include file="../pageDisplay/foot.jsp" %>
</body>
</html>